import Vue from 'vue'

//@ts-ignore
import App from './App.vue'

// $to
import to from './utils/to'

// typeof
import _typeof from './utils/typeof'

// 路由
import router from './router'

// 状态管理pinia
import { createPinia, PiniaVuePlugin } from 'pinia'

// 样式重置
import './assets/css/reset.css'

// element-ui
import element_ui from './utils/element-ui'

import 'uno.css'

const pinia = createPinia()

Vue.use(PiniaVuePlugin)
Vue.use(to)
Vue.use(_typeof)
Vue.use(element_ui)
// 生产提示
Vue.config.productionTip = false

// 事件总线
Vue.prototype.$bus = new Vue()

// async await再次封装
new Vue({
  render: (h) => h(App),
  router,
  pinia
}).$mount('#app')
